import Vue from 'vue'
import VueRouter from 'vue-router'

// 引入登录界面
import MyLogin from '@/views/MyLogin'
// 引入主页布局
import MyLayout from '@/views/MyLayout'
Vue.use(VueRouter)
Vue.use(MyLayout)

const routes = [
  {
    path: '/',
    component: MyLogin
  },
  {
    path: '/MyLogin',
    component: MyLogin
  },
  {
    path: '/MyLayout',
    component: MyLayout

  }
]

const router = new VueRouter({
  routes
})

export default router
